
ENTRYPOINT	= 0x00500
LD		= ld
LDFLAGS		= -s -m elf_i386 -Ttext $(ENTRYPOINT)
TARGET		= kernel
OBJS		= main/.MAIN.o  \
                   lib/.ASM.o 


.PHONY : clean clear 

all :	clean fork $(TARGET) 

clean :
	rm -f $(OBJS)

fork :
	(cd lib     ;  make)
	(cd main    ;  make)

$(TARGET): $(OBJS)
	$(LD) $(LDFLAGS) -o $@ $(OBJS)


